package com.xuecheng.learning.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.base.model.PageResult;
import com.xuecheng.base.model.RestResponse;
import com.xuecheng.learning.model.dto.MyCourseTableParams;
import com.xuecheng.learning.model.po.CourseTables;
import com.xuecheng.learning.model.po.LearnRecord;

/**
 * 学习过程管理service接口
 */
public interface LearningService extends IService<LearnRecord> {
    /**
     * 获取对应课程计划的视频路径
     * @param userId
     * @param courseId
     * @param teachplanId
     * @param mediaId
     * @return
     */
    RestResponse<String> getVideo(Long userId, Long courseId, Long teachplanId, Long mediaId);

    /**
     * 根据参数获取我的课程表
     * @param params
     * @return
     */
    PageResult<CourseTables> getMyCourseTable(MyCourseTableParams params);
}
